package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 商家订单对应商品表
 */
@Data
@Table(name = "kc_business_order_goods")
public class BizBusinessOrderGoods {
    /*订单id*/
    @Id
    private Integer orderId;
    /*商品id*/
    private Integer goodsId;
    /*商品名称*/
    private String goodsName;
    /*商品简介*/
    private String goodsIntro;
    /*商品单价*/
    private BigDecimal goodsPrice;
    /*购买数量*/
    private Integer goodsNum;
    /*订单开始时间/使用时间*/
    private String useStartTime;
    /*订单结束时间*/
    private String useEndTime;
    /*商品数据记录*/
    private String goodsData;
    /*预订人*/
    private String reservedName;
    /*预订人电话*/
    private String reservedMobile;
    /*使用人数*/
    private Integer useUserNum;
    /*商品图片*/
    private String goodsImage;
    public BizBusinessOrderGoods(){}
    public BizBusinessOrderGoods(Integer orderId, Integer goodsId, String goodsName, String goodsIntro, BigDecimal goodsPrice, Integer goodsNum, String useStartTime, String useEndTime, String goodsData, String reservedName, String reservedMobile, Integer useUserNum, String goodsImage) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsIntro = goodsIntro;
        this.goodsPrice = goodsPrice;
        this.goodsNum = goodsNum;
        this.useStartTime = useStartTime;
        this.useEndTime = useEndTime;
        this.goodsData = goodsData;
        this.reservedName = reservedName;
        this.reservedMobile = reservedMobile;
        this.useUserNum = useUserNum;
        this.goodsImage = goodsImage;
    }
}
